//
//  KHSettingVC.m
//  KissHealth
//
//  Created by Mark on 2017/1/9.
//  Copyright © 2017年 Mark. All rights reserved.
//

#import "KHSettingVC.h"

@interface KHSettingVC ()<UIWebViewDelegate>

@end

@implementation KHSettingVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //注册一个通知 在图片更改后这边做一个刷新
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(photoImageChange:) name:kPhotoImageChangeNotification object:self];
    
}

- (void)photoImageChange:(NSNotification *)notif{
    [self.webView reload];
}

- (void)dealloc{
    [[NSNotificationCenter defaultCenter]removeObserver:self name:kPhotoImageChangeNotification object:nil];
}

@end
